projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30438c6
)
snapshot: Handle NULL returns in pop_and_append()
author
Benjamin Otte
<otte@redhat.com>
Sat, 17 Dec 2016 07:03:43 +0000
(08:03 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Tue, 20 Dec 2016 17:01:11 +0000
(18:01 +0100)
gtk/gtksnapshot.c
patch
|
blob
|
history
diff --git
a/gtk/gtksnapshot.c
b/gtk/gtksnapshot.c
index 4f05586269f7b41dfb684d218652869dc7a701c5..dfcd3f3ac7f83060f4f6d94349517c088d77d693 100644
(file)
--- a/
gtk/gtksnapshot.c
+++ b/
gtk/gtksnapshot.c
@@
-473,8
+473,11
@@
gtk_snapshot_pop_and_append (GtkSnapshot *snapshot)
GskRenderNode *node;
node = gtk_snapshot_pop (snapshot);
- gtk_snapshot_append_node (snapshot, node);
- gsk_render_node_unref (node);
+ if (node)
+ {
+ gtk_snapshot_append_node (snapshot, node);
+ gsk_render_node_unref (node);
+ }
}
/**